﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="kecheng_shenhe.aspx.cs" Inherits="kecheng_shenhe" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">  
    <table style="width: 796px">     
        <tr>
            <td style="width: 317px; height: 154px; vertical-align: top;">
                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
                    AutoGenerateColumns="False" DataSourceID="SqlDataSource1" Width="786px" DataKeyNames="id" OnRowCommand="GridView1_RowCommand" PageSize="6" OnRowDataBound="GridView1_RowDataBound" CellPadding="4" ForeColor="Black" GridLines="Vertical" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="0px" cssclass="font33">
                    <Columns>
                        <asp:BoundField HeaderText="编号" />
                        <asp:BoundField DataField="id" HeaderText="id" InsertVisible="False" ReadOnly="True"
                            SortExpression="id" Visible="False" />
                        <asp:TemplateField HeaderText="课程名称">
                            <ItemTemplate>
                                <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%#Eval("id")%>'
                                    Text='<%# Eval("name", "{0}") %>' Width="360px" Font-Underline="False"  ForeColor="Black"></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="username1" HeaderText="授课老师"  ReadOnly="True" />
                        <asp:BoundField DataField="confirm" HeaderText="课程状态"  ReadOnly="True" />
                    </Columns>
                    <FooterStyle BackColor="#CCCC99" />
                    <RowStyle BackColor="#F7F7DE" />
                    <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                    <HeaderStyle BackColor="#D9EDB2" Font-Bold="True" ForeColor="Black" Font-Underline="False"/>
                    <AlternatingRowStyle BackColor="White" />
                </asp:GridView>
            </td>
        </tr>
    <tr>
        <td style="width: 317px; height: 20px">
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:gConnectionString %>"
                SelectCommand="SELECT [id], [name],[username1],[confirm] FROM [kecheng_laoshi] WHERE (([jigou] = @id) AND (([confirm] = @confirm) OR ([confirm] = @confirm1) OR ([confirm] = @confirm2)))  ORDER BY [xtsj2] DESC">
                <SelectParameters>
                    <asp:SessionParameter Name="id" SessionField="sJigou" Type="String" />
                    <asp:Parameter DefaultValue="新建" Name="confirm" Type="String" />
                    <asp:Parameter DefaultValue="审核未通过" Name="confirm1" Type="String" />
                    <asp:Parameter DefaultValue="终审未通过" Name="confirm2" Type="String" />
                </SelectParameters>
            </asp:SqlDataSource>
        </td>
    </tr>
    </table>
</form>
</body>
</html>

